package com.inifitness.admin.core.system.model.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.inifitness.common.basic.BaseEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 部门实体
 *
 * @author sunjinfeng
 * @since 2024/04/18 11:00:00
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class SysDept extends BaseEntity {

  /**
   * 主键
   */
  @TableId(type = IdType.AUTO)
  private Long id;

  /**
   * 部门名称
   */
  private String name;

  /**
   * 父节点id
   */
  private Long parentId;

  /**
   * 父节点id路径
   */
  private String treePath;

  /**
   * 显示顺序
   */
  private Integer sort;

  /**
   * 状态(1:正常;0:禁用)
   */
  private Integer status;

  /**
   * 逻辑删除标识(1:已删除;0:未删除)
   */
  private Integer deleted;

  private String createBy;

  private String updateBy;

}